<!-- $Id: article_list.htm 16783 2009-11-09 09:59:06Z liuhui $ -->

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>ECSHOP 管理中心 - 文章列表 </title>
<meta name="robots" content="noindex, nofollow">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="__TMPL__/Public/styles/general.css" rel="stylesheet" type="text/css" />
<link href="__TMPL__/Public/styles/main.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="__ROOT__/JS/jquery.js"></script>
<script language="javascript">
$(document).ready(function(e) {
    $("select[selectedvalue]").each(function(index, element) {
        var value=$(this).attr('selectedvalue');
		$(this).children("[value='"+value+"']").attr('selected',true);
    });
});
</script>
</head>
<body>

<h1>
<span class="action-span"><a href="__ACTION__/action/add">添加新文章</a></span>
<span class="action-span1"><a href="__TMPL__/Public/index.php?act=main">ECSHOP 管理中心</a> </span><span id="search_id" class="action-span1"> - 文章列表 </span>
<div style="clear:both"></div>
</h1>
<div class="form-div">
  <form action="__ACTION__" method="get" name="searchForm" >
    <img src="__TMPL__/Public/images/icon_search.gif" width="26" height="22" border="0" alt="SEARCH" />
    <select name="type_id" id="type_id" selectedvalue="{$Think.get.type_id}">
   		 <option value="0">所有文章</option>
			<volist name=":TypeTree()" id="row">
            <option value="{$row.Id}">{$row.typename}</option>
            <gt name="row.sublist|count" value="0">
            	<volist name="row.sublist" id="sub">
                	<option value="{$sub.Id}">&nbsp;&nbsp;{$sub.typename}</option>
                </volist>
            </gt>
            </volist>       
            </select>
    文章标题 <input type="text" name="keyword" id="keyword" />
    <input type="submit" value=" 搜索 " class="button" />
  </form>
</div>

<form method="POST" action="article.php?act=batch_remove" name="listForm">
<!-- start cat list -->
<div class="list-div" id="listDiv">

<table cellspacing='1' cellpadding='3' id='list-table'>
  <tr>
    <th><!--<input onclick='listTable.selectAll(this, "checkboxes")' type="checkbox">-->
      <a href="javascript:;">编号</a><img src="__TMPL__/Public/images/sort_desc.gif"/></th>
    <th><a href="javascript:;">文章标题</a></th>
    <th><a href="javascript:;">文章分类</a></th>
    <th><a href="javascript:;">文章重要性</a></th>
    <th><a href="javascript:;">是否显示</a></th>
    <th><a href="javascript:;">添加日期</a></th>
    <th>操作</th>
  </tr>
  <volist name='list' id='row'>
    <tr>
    <td align="center"><span><!--<input name="checkboxes[]" type="checkbox" value="{$row.Id}"/>-->{$row.Id}</span></td>
    <td class="first-cell">
    <span onclick="javascript:listTable.edit(this, 'edit_title', 6)">{$row.title}</span></td>
    <td align="left"><span><!--  -->{$row.type_id|TypeName}<!--  --></span></td>
    <td align="center"><span><eq name='row.istop' value='1'><font color="#FF0000">置顶</font><else />普通</eq></span></td>
    <td align="center"><eq name='row.isshow' value='1'><img src="__TMPL__/Public/images/yes.gif" alt="yes" /><else /><img src="__TMPL__/Public/images/no.gif" alt="yes" /></eq></td>
    <td align="center"><span>{$row.createtime}</span></td>
    <td align="center" nowrap="true"><span>
      <a href="__TMPL__/Public/../article.php?id=6" target="_blank" title="查看"><img src="__TMPL__/Public/images/icon_view.gif" border="0" height="16" width="16" /></a>&nbsp;
      <a href="__ACTION__/action/edit/Id/{$row.Id}" title="编辑"><img src="__TMPL__/Public/images/icon_edit.gif" border="0" height="16" width="16" /></a>&nbsp;
      <a href="__ACTION__/action/remove/Idlist/{$row.Id}" onclick="return window.confirm('此操作不可恢复，确认删除这篇文章?');" title="删除"><img src="__TMPL__/Public/images/icon_trash.gif" border="0" height="16" width="16" /></a>
     <!--  --></span>
    </td>
   </tr>
   </volist>
     <tr>&nbsp;
    <td align="right" nowrap="true" colspan="8">      <!-- $Id: page.htm 14216 2008-03-10 02:27:21Z testyang $ -->
            <div id="turn-page">
        总计  <span id="totalRecords">{$page.totalRows}</span>
        个记录分为 <span id="totalPages">{$page.totalPages}</span>
        页当前第 <span id="pageCurrent">{$page.nowPage}</span>
        页
        <span id="page-link">
          <a href="{$page.firstPage}">第一页</a>
          <a href="{$page.upPage}">上一页</a>
          <a href="{$page.downPage}">下一页</a>
          <a href="{$page.lastPage}">最末页</a>
        </span>
      </div>
</td>
  </tr>
</table>

</div>

<div>
  <input type="hidden" name="act" value="batch" />
  <select name="type" id="selAction" onchange="changeAction()">
    <option value="">请选择...</option>
    <option value="button_remove">批量删除</option>
    <option value="button_hide">批量隐藏</option>
    <option value="button_show">批量显示</option>
    <option value="move_to">转移到分类</option>
  </select>
  <select name="target_cat" style="display:none">
    <option value="0">请选择...</option>
    <option value="1"  cat_type="2" >系统分类</option><option value="2"  cat_type="3" >&nbsp;&nbsp;&nbsp;&nbsp;网店信息</option><option value="3"  cat_type="4" >&nbsp;&nbsp;&nbsp;&nbsp;网店帮助分类</option>  </select>

  <input type="submit" value=" 确定 " id="btnSubmit" name="btnSubmit" class="button" disabled="true" />
</div>
</form>

<div id="footer">
共执行 3 个查询，用时 0.014917 秒，Gzip 已禁用，内存占用 0.298 MB<br />
版权所有 &copy; 2005-2012 上海商派网络科技有限公司，并保留所有权利。</div>
<!-- 新订单提示信息 -->


</body>
</html>